<?php

namespace app\model;

/**
 * @property integer $id 主键(主键)
 * @property integer $user_id 用户ID
 * @property string $qrcode 小程序码
 * @property integer $status 状态
 * @property integer $phone 绑定手机号
 * @property integer $backup_phone
 * @property integer $short_message
 * @property integer $is_privacy
 * @property string $created_at 创建时间
 * @property string $updated_at 更新时间
 */
class CarQrcode extends Base
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'wa_car_qrcodes';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $pk = 'id';

    protected $hidden = ['created_at', 'updated_at'];
    

    public function wxNotice(){
        return $this->hasOne(User::class, 'id', 'user_id')->bind(['wx_notice']);
    }

}
